const globalObject: any = (() => {
	if (typeof window !== 'undefined') {
		// Browsers
		return window;
	} else if (typeof global !== 'undefined') {
		// Node and Weixin App
		return global;
	} else if (typeof self !== 'undefined') {
		// Web workers
		return self;
	} else {
		return {};
	}
})();

export default globalObject;
